<?php
if (null !== $this->grid) {
	/* @var $grid KontorX_DataGrid */
	$grid = $this->grid;
	$grid->disablePagination();

	/* @var KontorX_DataGrid_Adapter_DbSelect */
	$adapter = $grid->getAdapter();
	$rowset = $adapter->fetchData();

	$data = new Zend_Dojo_Data();
	$data->setIdentifier('id');
	$data->setLabel('name');
	$data->setItems($rowset);

	print $data->toJson();
}